package xmlParse;

public class FntInfo { 

	private String firString ; //字符
	private String word_originPos;//字體的初始位置
	private String word_size ;//字體所占的寬高

	public void setWord_originPos(String word_originPos) {
		this.word_originPos = word_originPos;
	}

	public String getWord_originPos() {
		return word_originPos;
	}
	
	public int getWord_x()
	{
		int word_x = -1;
		String xy [] = word_originPos.split(",");
		word_x = Integer.parseInt(xy[0]);
		return word_x;
	}
	
	public int getWord_y()
	{
		int word_y = -1;
		String xy [] = word_originPos.split(",");
		word_y = Integer.parseInt(xy[1]);
		return word_y;
	}

	public void setWord_size(String word_size) {
		this.word_size = word_size;
	}

	public String getWord_size() {
		return word_size;
	}

	public int getWord_W()
	{
		String wh[] = word_size.split("x");
		return Integer.parseInt(wh[0]);
	}
	
	public int getWord_H()
	{
		String wh[] = word_size.split("x");
		return Integer.parseInt(wh[1]);
	}
	
	
	public void setFirString(String firString) {
		this.firString = firString;
	}

	public String getFirString() {
		System.out.println("firString ="+firString);
		return firString;
	}


} 


